package com.example.javabasic.shejimoshi.guanchazhe.demo1;
//具体目标
public class ConcreteSubject extends Subject {
    @Override
    public void notifyObserver() {
        System.out.println("具体目标发生改变");
        //对所有观察者进行通知
        for (Observer observer : list) {
            observer.response();
        }
    }
}
